package com.utils;

import com.demo.EncryptManager;


/**
 * Created with IntelliJ IDEA. User: william Date: 13-5-6 Time: 上午11:31
 * Mobi:18601920351 Email: lishu@9ebank.com
 */
public class RequestParamesUtil {

	// not init this
	private RequestParamesUtil() {
	}

	// 下单
	public static String Test(EncryptManager encryptManager,
			String tradeCode, String mobKey, String merchantId, String merchOrderId,String amount,
			String mobileNo, String name, String certNo, String bankAccount) {
		RequestParams4TestBean request = new RequestParams4TestBean();
		request.setTradeCode(tradeCode);
		request.setMobKey(mobKey);
		request.setMerchantId(encryptManager.getEncryptDES(merchantId));
		request.setAmount(encryptManager.getEncryptDES(amount));
		request.setMobileNo(encryptManager.getEncryptDES(mobileNo));
		request.setName(encryptManager.getEncryptDES(name));
		request.setCertNo(encryptManager.getEncryptDES(certNo));
		request.setBankAccount(encryptManager.getEncryptDES(bankAccount));
		request.setTradeTime("2016-06-17 15:26:02");
		request.setMerchOrderId(merchOrderId);
		request.setVersion("2.0.0");
		request.setOrderDesc("44444");
		request.setSign(encryptManager.getReqSign(request.getParamNames(),
				request.getMap()));
	
		return "";
	}

}
